﻿using System.ComponentModel.Composition;
using System.Windows.Controls;
using IntoNails.Infrastructure;
using IntoNails.Infrastructure.Views.Attributes;
using IntoNails.Modules.CustomerManagement.ViewModels;

namespace IntoNails.Modules.CustomerManagement.Views
{
    /// <summary>
    /// Interaction logic for CustomerManagementView.xaml
    /// </summary>
    [ViewExport(RegionName = RegionNames.WorkspaceRegion)]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public partial class CustomerManagemenrWorkspaceView : UserControl
    {
        public CustomerManagemenrWorkspaceView()
        {
            InitializeComponent();
        }

        [Import]
        public ICustomerWorkspaceViewModel ViewModel
        {
            get { return this.DataContext as ICustomerWorkspaceViewModel; }
            set { this.DataContext = value; }
        }
    }
}
